var indexRoot = new Vue({
    el: "#index",
    method: {}
});

$(function () {

});

function initImgList() {

}

function saveFile() {
    var formData = new FormData();
    formData.append("file", document.getElementById("file").files[0]);
    $.ajax({
        url: "fdfs/fileUpdaload",
        data: formData,
        type: "POST",
        processData: false,
        contentType: false,  //tell jQuery not to set contentType
        async: false,//true为异步，false为同步
        success: function (result) {
            $("#imgA").attr("href", result.data);
            $("#img").attr("src", result.data);
        }
    });
}
